import {
  HTTP
} from '../utils/http-aqie.js'

// app.deweiyi app 接口
class UserAccountModel extends HTTP {
  getWxpayAndAlipaySingleDetail(data) {
    return this.request({
      url: 'UserAccount/getWxpayAndAlipaySingleDetail',
      method: 'POST',
      data: data
    })
  }

  getWxpayAndAlipayTotalByDay(data){
    return this.request({
      url: 'UserAccount/getWxpayAndAlipayTotalByDay',
      method: 'POST',
      data: data
    })
  }

  adminSendSilverStatic(start, end){
    return this.request({
      url: `silver/adminSendSilverStatic?start=${start}&end=${end}`
    })
  }

  addPushDetail(data) {
    return this.request({
      url: 'UserAccount/addPushDetail',
      method: 'POST',
      data: data
    })
  }

  singlePush(data) {
    return this.request({
      url: 'UserAccount/singlePush',
      method: 'POST',
      data: data
    })
  }

  allPush(data) {
    return this.request({
      url: 'UserAccount/allPush',
      method: 'POST',
      data: data
    })
  }

  getWinInfo(){
    return this.request({
      url: `BigWheel/getWinInfo`
    })
  }

  addBigWheel(data) {
    return this.request({
      url: 'BigWheel/addBigWheelData',
      method: 'POST',
      data: data
    })
  }

  getActivityList(){
    return this.request({
      url: 'BigWheel/getActivityList',
      method: 'GET'
    })
  }

  editBigWheel(data) {
    return this.request({
      url: 'BigWheel/editBigWheelData',
      method: 'POST',
      data: data
    })
  }

  addPrize(data) {
    return this.request({
      url: 'BigWheel/addPrize',
      method: 'POST',
      data: data
    })
  }

  getPrizeList() {
    return this.request({
      url: 'BigWheel/getPrizeInfo',
      method: 'GET'
    })
  }

  editPrize(data) {
    return this.request({
      url: 'BigWheel/editPrize',
      method: 'POST',
      data: data
    })
  }

  updateStatusByName(data) {
    return this.request({
      url: 'UserAccount/updateStatusByName',
      method: 'POST',
      data: data
    })
  }

}

export { UserAccountModel }